package com.leha.mp.core.config;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ResourceBundle;

public class WxPayConfig {
    private static String appId = ResourceBundle.getBundle("config").getString("wxpay.appid");
    private static String mchId = ResourceBundle.getBundle("config").getString("wxpay.mchid");
    private static String mchKey = ResourceBundle.getBundle("config").getString("wxpay.mchkey");
   // private String subAppId = ResourceBundle.getBundle("config").getString("wxpay.subAppId");
   // private String subMchId = ResourceBundle.getBundle("config").getString("wxpay.subMchId");
    private static String keyPath = ResourceBundle.getBundle("config").getString("wxpay.keyPath");
    private static String notifyUrl = ResourceBundle.getBundle("config").getString("wxpay.notifyUrl");
    private static String tradeType=ResourceBundle.getBundle("config").getString("wxpay.tradeType");
    private static String refundNotifyUrl = ResourceBundle.getBundle("config").getString("wxpay.RefundNotifyUrl");

    public static String getAppId() {
        return appId;
    }

    public static String getMchId() {
        return mchId;
    }

    public static String getMchKey() {
        return mchKey;
    }

    public static String getNotifyUrl() {
        return notifyUrl;
    }

    public static String getTradeType() {
        return tradeType;
    }

    public static String getKeyPath() {
        return keyPath;
    }

    public static String getRefundNotifyUrl() {return refundNotifyUrl;}
}
